package com.systop.busafter.admin.service.impl;

import com.systop.busafter.admin.mapper.AdminMapper;
import com.systop.commer.pojo.Admin;
import com.systop.busafter.admin.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AdminServiceImpl implements AdminService{

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public int updataadmin(Admin admin) {
        return adminMapper.updataadmin(admin);
    }

    @Override
    public int insertAdmin(Admin admin) {
        return adminMapper.insertAdmin(admin);
    }

    @Override
    public Admin adminLogin(Admin admin) {
        return adminMapper.adminLogin(admin);
    }

    @Override
    public List<Admin> adminListall() {
        return adminMapper.adminListall();
    }

    @Override
    public List<Admin> adminIdlist(int admin_id) {
        return adminMapper.adminIdlist(admin_id);
    }

    @Override
    public int deleteAdmin(int admin_id) {
        return adminMapper.deleteAdmin(admin_id);
    }
}
